<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>发货订单</title>
    <link rel="stylesheet" href="../../../elementUI/index.css">
    <link rel="stylesheet" href="../../../css/index.css">
    <style>
        @media (max-width: 480px) {

            body,
            html {
                overflow-x: hidden;
                /* 隐藏横向滚动条 */
            }

            #app {
                /* 假设你的Vue实例挂载在id为app的元素上 */
                overflow-x: hidden;
            }

            .el-form {
                display: flex;
                width: 100%;
                flex-direction: column;
                overflow: hidden;
                /* background-color: red; */
            }
          

            /* 限制el-descriptions的宽度并允许其内部滚动 */
            .el-descriptions {
                display: flex;
                flex-direction: column;
                width: 70%;
                overflow-x: auto;
                
                /* background-color: blue; */
            }

            .el-descriptions-item {
                width: 30%;
                /* background-color: yellowgreen; */
            }
            .table_titel{
                width: 100%;
                /* background-color: red; */
            }
            .el-descriptions-row{
                width: 50%;
                /* background-color: blue; */
                display: flex;
                flex-direction: column;
                flex-wrap: wrap;
            }
            .el-descriptions-item__label.is-bordered-label {
                width: 25%;
                font-size: 0.8rem;
                padding: 10px;
                /* height: 50px; */

            }
            .el-input {
                width: 70%;
            }
            
        }
    </style>
</head>

<body>
    <div id="app" class="minWidth">
        <el-form :model="form" ref="contract" inline-message="true"  >
            <div class="table_titel">
                <div class="titel">销售出库单</div>
            </div>
            <el-descriptions :column='2' border size="small">
                <el-descriptions-item label="出库日期">
                    <el-form-item>
                        <el-date-picker :disabled="true" v-model="form.Receipt_Date" type="datetime"
                            placeholder="选择日期时间">
                        </el-date-picker>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="出货地点">
                    <el-form-item>
                        <el-input :disabled="true" v-model.trim="form.Receipt_Name"></el-input>
                    </el-form-item>
                </el-descriptions-item>
                <el-descriptions-item label="仓库名称">
                    <el-form-item>
                        <el-input :disabled="true" v-model.trim="form.Store_Name"></el-input>
                    </el-form-item>
                </el-descriptions-item>
            </el-descriptions>
            <!-- <div class="table_titel" style="display: flex;flex-direction: column;align-items: start;"  > -->
                <div class="titel" style="margin-bottom: 10px;">销售出库明细</div>
                <el-descriptions style="width: 100%;" :column="2" border size="small"
                    v-for="(item,i) in form.Children.sales_receipt_detail" :key="i">
                    <el-descriptions-item label="订单类型">
                        <el-form-item>
                            <el-input :disabled="true" v-model.trim="item.Order_Name"></el-input>
                        </el-form-item>
                    </el-descriptions-item>
                    <el-descriptions-item label="商品名称">
                        <el-form-item>
                            <el-input :disabled="true" v-model.trim="item.Article_Name"></el-input>
                        </el-form-item>
                    </el-descriptions-item>
                    <el-descriptions-item label="出库数量">
                        <el-form-item>
                            <el-input :disabled="true" v-model.trim="item.Receipt_Quantity"></el-input>
                        </el-form-item>
                    </el-descriptions-item>
                    <el-descriptions-item label="发货详情">
                        <el-form-item>
                            <el-input placeholder="请输入物流单号或司机信息" v-model.trim="item.Logistics_Number"></el-input>
                        </el-form-item>
                    </el-descriptions-item>
                </el-descriptions>
                <el-descriptions :column="1" border size="mall" v-for="(item,index) in sales_order_logistics"
                    :key="index" style="margin-bottom: 50px;">
                    <el-descriptions-item label="快递公司">
                        <el-form-item>
                            <el-select :disabled="item.disabled1" v-model.trim="item.LogisticsCode"
                                placeholder="请选择快递公司" filterable style="width: 100%">
                                <el-option v-for="(item,index) in expressCompany"
                                    :key="item.Logistics_Company_SerialNumber" :label="item.Logistics_Company"
                                    :value="item.Logistics_Company_Code"></el-option>
                            </el-select>
                        </el-form-item>
                    </el-descriptions-item>
                </el-descriptions>
            <!-- </div> -->
            <el-form-item class="form-operation"> 
                <el-button @click="window.history.back()">返回</el-button>
                <el-button type="primary" :disabled="disabled" :loading="loading"
                    @click="submitForm('contract')">提交</el-button>
            </el-form-item>
        </el-form>
    </div>
    <script type="text/javascript" src="../../../js/jquery-3.6.0.min.js"></script>
    <script type="text/javascript" src="../../../js/jquery.cookie.js"></script>
    <script type="text/javascript" src="../../../js/vue.min.js"></script>
    <script type="text/javascript" src="../../../elementUI/index.js"></script>
    <script type="text/javascript" src="../../../js/utils.js"></script>
    <script type="text/javascript" src="../../../js/FileSaver.min.js"></script>
    <script type="text/javascript" src="../../../js/FileSaver.js"></script>
    <script type="text/javascript" src="../../../js/xlsx.full.min.js"></script>
    <script type="text/javascript" src="./js/SalesOutboundOrder.js"></script>
</body>

</html>